package com.example.myapplication.designmode.factory.abstractfa;
// 具体工厂1
public class ConcreteFactory implements AbstractFactory{

    @Override
    public ProductA createProductA1() {
        return new ConcreteProductA1();
    }

    @Override
    public ProductA createProductA2() {
        return new ConcreteProductA2();
    }

    @Override
    public ProductB createProductB1() {
        return new ConcreteProductB1();
    }

    @Override
    public ProductB createProductB2() {
        return new ConcreteProductB2();
    }
}
